.node {
  display: flex;
  align-items: center;
  width: 100%;
  height: 40px;
  background-color: #fff;
  border: 1px solid #c2c8d5;
  border-left: 4px solid #5f95ff;
  border-radius: 4px;
  box-shadow: 0 2px 5px 1px rgba(0, 0, 0, 0.06);
  transition: border-color 0.3s ease;
  position: relative;

  &.is-focus {
    box-shadow: 0 2px 6px 3px rgba(0, 0, 0, 0.12);
    border-width: 1px;
    border-color: #5f95ff;
    border-left-width: 4px;
  }

  &:hover .add-node-btn {
    display: flex;
  }
}

.add-node-btn {
  border: 1px solid var(--color-grey-3);
  background-color: var(--color-grey-1);
  border-radius: 50%;
  padding: 2px;
  width: 20px;
  height: 20px;
  display: none;
  align-items: center;
  justify-content: center;
}

.node-list .base-node-content {
  cursor: pointer;
  padding: 8px 0;
  transition: all 0.2s;
  &:hover {
    background-color: var(--color-grey-2);
  }
}

body .popover-node-list {
  --el-popover-padding: 8px 0;
}

.node svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-left: 8px;
}
.node .label {
  display: inline-block;
  flex-shrink: 0;
  width: 104px;
  margin-left: 8px;
  color: #666;
  font-size: 14px;
}
.node .status {
  flex-shrink: 0;
}
.node.pass {
  border-left: 4px solid #52c41a;
}
.node.reject {
  border-left: 4px solid #ff4d4f;
}
.node.running, .node.waiting {
  .status svg {
    animation: spin 1s linear infinite;
  }
}
.x6-node-selected .node {
  border-color: #1890ff;
  border-radius: 2px;
  box-shadow: 0 0 0 4px #d4e8fe;
}
.x6-node-selected .node.pass {
  border-color: #52c41a;
  border-radius: 2px;
  box-shadow: 0 0 0 4px #ccecc0;
}
.x6-node-selected .node.reject {
  border-color: #ff4d4f;
  border-radius: 2px;
  box-shadow: 0 0 0 4px #fedcdc;
}
.x6-edge:hover path:nth-child(2) {
  stroke: #1890ff;
  stroke-width: 1px;
}

.x6-edge-selected path:nth-child(2) {
  stroke: #1890ff;
  stroke-width: 1.5px !important;
}

.manual-confirm {
  box-shadow: var(--el-box-shadow-light);
}

@keyframes running-line {
  to {
    stroke-dashoffset: -1000;
  }
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
